#!/bin/bash
# Start Ollama service

echo "🚀 Starting Ollama service..."

# Try systemd first
if command -v systemctl &> /dev/null; then
    systemctl start ollama 2>/dev/null
    sleep 3
fi

# Check if running
if pgrep -f "ollama" >/dev/null; then
    echo "✅ Ollama started successfully"
else
    echo "❌ Failed to start Ollama"
    echo "   Try running: ollama serve"
    exit 1
fi

